import time
from common.Utils import ChatDriver
from cases import LoginTest
from cases import HomePageTest
from cases import SendTest
from cases import AcceptTest
if __name__ == "__main__":
    # #登录失败测试
    # LoginTest.LoginTest().loginFailTest()
    # #登录成功测试
    # LoginTest.LoginTest().loginSucTest()

    #未登录状态访问聊天首页
    # HomePageTest.HomePageTest().unLoggedHomePageTest()
    #登录进入首页
    # LoginTest.LoginTest().loginSucTest()
    # #查看聊天首页元素
    # HomePageTest.HomePageTest().loggedHomePageTest()

    #----发送测试----
    #登录lisi
    # LoginTest.LoginTest().loginSucTest("lisi")
    #lisi发送消息
    # SendTest.SendTest().sendMsgTest("你好啊，张三")
    #----接收测试------
    #登录zhangsan
    # ChatDriver.driver.back()
    LoginTest.LoginTest().loginSucTest("zhangsan")
    #接收消息
    AcceptTest.AcceptTest().AcceptMsgTest()

    time.sleep(2)
    ChatDriver.driver.quit()